<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<form action="list" method="post">
文章名称:<input type="text" name="title" value="${qv.title}">
文章内容:<input type="text" name="content" value="${qv.content}">
创建时间:<input type="text" name="time1">-<input type="text" name="time2">
<input type="submit" value="查询">
<table>
<tr>
<td>ID</td>
<td>标题</td>
<td>摘要</td>
<td>图片</td>
<td>文章内容</td>
<td>创建时间</td>
</tr>
<c:forEach items="${pg.list}" var="a">
<tr>
<td>${a.id}</td>
<td>${a.title}</td>
<td>${a.zhaiyao}</td>
<td><img  src="${a.pic}" height="50px" width="50px"> </td>
<td>${a.content}</td>
<td><fmt:formatDate value="${a.time}" pattern="yyyy-MM-dd"/> </td>
</tr>
</c:forEach>
</table>
当前页:${pg.pageNum}/${pg.pages}
总条数:${pg.total}
<jsp:include page="/resource/common/pages.jsp"></jsp:include>
<a href="toAdd">添加</a>
</form>


</body>
</html>